package com.qdlc.p2p.dal.dto;

import com.qdlc.p2p.common.constant.Global;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 流转项目 上传的资料
 *
 * @author liya
 * @version 1.1.0.0
 */
@Entity
@Table(name = "" + Global.DB_PREFIX + "additional_flow_upload")
public class AdditionalFlowUpload {
/*
    *//**
     * 抵押实物照
     *//*
    public static final int MORTGAGE_PHYSICAL = 1;
    *//**
     * 抵押档案照
     *//*
    public static final int MORTGAGE_ARCHIVES = 2;
    *//**
     * 担保函
     *//*
    public static final int GUARANTEE = 3;
    *//**
     * 流转理财资料
     *//*
    public static final int FLOW_DATA = 4;
    *//**
     * 手动生成的借款合同
     *//*
    public static final int CONTRACT = 5;
    */
    /**
     * 缩略图
     *//*
    public static final int THUMBNAIL = 6;*/

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private long id;

    /**
     * 关联流转理财项目ID
     */
    @ManyToOne
    @JoinColumn(name = "flow_id")
    private AdditionalFlowProject flowProject;

    /**
     * 图片地址
     */
    private String picPath;

    /**
     * 图片类型 1，抵押实物照 2，抵押档案照 3，担保函,4借款资料图片（显示于标详情页）,5后台上传合同，6缩略图（显示于标详情页）
     */
    private int type;

    /**
     * 获取 the id
     *
     * @return
     */
    public long getId() {
        return id;
    }

    /**
     * 设置 the id
     *
     * @param
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * 获取 流转项目 ID
     *
     * @return
     */
    public AdditionalFlowProject getFlowProject() {
        return flowProject;
    }

    /**
     * 设置 流转项目 ID
     *
     * @param
     */
    public void setFlowProject(AdditionalFlowProject flowProject) {
        this.flowProject = flowProject;
    }

    /**
     * 获取 图片路径
     *
     * @return
     */
    public String getPicPath() {
        return picPath;
    }

    /**
     * 设置  图片路径
     *
     * @param
     */
    public void setPicPath(String picPath) {
        this.picPath = picPath;
    }

    /**
     * 获取 图片类型
     *
     * @return
     */
    public int getType() {
        return type;
    }

    /**
     * 设置  图片类型
     *
     * @param
     */
    public void setType(int type) {
        this.type = type;
    }

}
